     <!DOCTYPE html>  
<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="@{/resources/bootstrap-table-master/assets/bootstrap/css/bootstrap.min.css}"/>
    <link rel="stylesheet" href="@{/resources/bootstrap-table-master/src/bootstrap-table.css}"/>
 <body>       
 	<div class="modal-dialog">
	<div class="modal-content">
    <div class="modal-body">
<form class="form-inline" method="post" name="tblTaskEditForm" id="tblTaskEditForm" Func="form">
	<input type="hidden" name="roleId" th:value="${roleId }"/>
	
	<div class="dropdown" th:each="sysFunc:${sysFuncPreList}">
      <input type="checkbox" th:value="${sysFunc.seqid}" name="funcIds" th:checked= "${sysFunc.checked}" /><span th:text="${sysFunc.name}" th:id="${sysFunc.url}"  class="dropdown-toggle"  data-toggle="dropdown" >13 February 2011</span>
    	<ul  role="menu" th:attr="aria-labelledby=@{${sysFunc.url}}">
       	 	<li  style="list-style-type:none;" th:each="sysFuncSub:${sysFunc.sysFuncSubList}">
           		<input type="checkbox" th:value="${sysFuncSub.seqid}" name="funcIds" th:checked= "${sysFuncSub.checked}"/><span th:text="${sysFuncSub.name}">13 February 2011</span>
        	</li>
    	</ul>
	</div>
		  <input type="button" class="btn btn-default" id="sub" value="提交" />
		  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
		  </form>
			</div>
		</div><!-- /.modal-content -->
		</div><!-- /.modal -->

		<script type="text/javascript">
		
		$(document).ready(function() {
				$('#sub').click(function(){
			        $.post('sysRoleFunc_save.json',$('#tblTaskEditForm').serialize(),function(result){
						$('#table').bootstrapTable('refresh');  
					  	$('#myModal').modal('hide');
					});
			});
			
			 $('#myModal').on('hidden.bs.modal', function () {$(this).removeData()});
			});
			</script>
				</body>
	</html>